use std::io;

mod coll;
mod face;
mod lib;
mod ls16;
mod worker;
use coll::on_vector;
use tokio;

fn main() {
    ls16::run();
}

fn base_type() {
    let n_int: &i32 = &33_i32;
    let n_int: &i64 = &33_i64;

    return ();
}

fn guess_input() {
    println!("Guess the number!");

    println!("Please input your guess.");

    let mut guess = String::new();

    io::stdin()
        .read_line(&mut guess)
        .expect("Failed to read line");

    println!("You guessed: {guess}");
}

fn case_if() {
    let condition = true;
    let number = if condition { 5 } else { 6 };

    println!("The value of number is: {number}");
}

fn case_for() {
    for number in (1..4).rev() {
        println!("{number}!"); // 3 2 1
    }
    println!("LIFTOFF!!!");
}

fn case_ref() {
    let s1 = String::from("hello");

    let len = calculate_length(&s1);

    println!("The length of '{}' is {}.", s1, len);
}

fn calculate_length(s: &String) -> usize {
    s.len()
}
